﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;

using $prjsn$.Entity.Services;

namespace $safeprojectname$.Data.Services
{
    //[ContractClass(typeof(Diagnostics.AttachmentDao))]
    public interface IAttachmentDao : IDao
    {
        IEnumerable<Attachment> GetByArticle(Article article);
        Attachment GetByName(string fileName, Article article);

        Attachment AddOrUpdate(Attachment entity);
        void Delete(Attachment entity);
        void ClearAttachments(Article article);
    }
}